import { http } from '@/utils/http/axios';

/**
 * @description: 网关列表
 */
export function routesPages(params) {
  return http.request({
    url: '/moss-cloud-base/base/gatewayRoutes/routesPages',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 保存配置
 */
export function saveRoutes(params) {
  return http.request({
    url: '/moss-cloud-base/base/gatewayRoutes/save',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 保存配置
 */
export function updateRoutes(params) {
  return http.request({
    url: '/moss-cloud-base/base/gatewayRoutes/update',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 删除配置项
 */
export function deleteRoutes(params) {
  return http.request({
    url: '/moss-cloud-base/base/gatewayRoutes/delete',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 刷新缓存
 */
export function overload() {
  return http.request({
    url: '/moss-cloud-base/base/gatewayRoutes/overload',
    method: 'POST',
    data:{},
  }, {
    isTransformResponse: false,
  });
}
